package cn.xp.fegin;

import cn.xp.dto.DeviceDto;
import cn.xp.dto.FloorDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "floor-service")
public interface DeviceFeignClient {

    @GetMapping("/floor/floorList/{id}")
    public List<FloorDto> floorList(@PathVariable("id") Long id);

}
